<!--
  Generated template for the WarnDetailsPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar color="primary">
    <ion-title>告警详情</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>

  <div style="margin-bottom:20px;">
    <ion-row>
      <ion-col col-4 class="divColor1 divPadding">
        告警时间：
      </ion-col>
      <ion-col col-8 class="divColor1 divPadding">
        {{warntime}}
      </ion-col>
    </ion-row>

    <ion-row>
      <ion-col col-4 class="divColor1 divPadding">
        测点类型:
      </ion-col>
      <ion-col col-8 class="divColor1 divPadding">
        <span *ngIf="name == 1">磁通量</span>
        <span *ngIf="name == 2">光纤光栅</span>
        <span *ngIf="name == 3">应力</span>
        <span *ngIf="name == 4">变形</span>
        <span *ngIf="name == 5">风速</span>
        <span *ngIf="name == 6">风振</span>
      </ion-col>
    </ion-row>

    <ion-row>
      <ion-col col-4 class="divColor1 divPadding">
        测点名称:
      </ion-col>
      <ion-col col-8 class="divColor1 divPadding">
        {{name1}}
      </ion-col>
    </ion-row>

    <ion-row>
      <ion-col col-4 class="divColor1 divPadding">
        告警等级:
      </ion-col>
      <ion-col col-8 class="divColor1 divPadding">
        {{colorName}}
      </ion-col>
    </ion-row>

    <ion-row>
      <ion-col col-4 class="divColor1 divPadding">
        阈值范围:
      </ion-col>
      <ion-col col-8 class="divColor1 divPadding">
          <span>[</span>
          <span>{{lower}}</span>
          <span>,</span>
          <span>{{upper}}</span>
          <span>]</span>
      </ion-col>
    </ion-row>

    <ion-row>
        <ion-col col-4 class="divColor1 divPadding">
          当前监测数据:
        </ion-col>
        <ion-col col-8 class="divColor1 divPadding">
          <span>{{message1}}</span>
        </ion-col>
      </ion-row>

      <ion-row>
          <ion-col col-4 class="divColor1 divPadding">
            是否处理:
          </ion-col>
          <ion-col col-8 class="divColor1 divPadding">
            <span *ngIf="status1==0">未处理</span>
            <span *ngIf="status1==1">已处理</span>
          </ion-col>
        </ion-row>
  </div>

  <p>处理意见:</p>
  <textarea rows="10" cols="10" style="width:100%" [(ngModel)]="remarks" value="remarks" (ngModelChange)="inputText()"></textarea>

  <!-- <textarea rows="10" cols="10" style="width:100%"  (ngModelChange)="inputText()"></textarea> -->
  


  <div>
    <button ion-button block  class="btn" (click)="update()" disabled>提交处理</button>
  </div>



</ion-content>
